<%@ page language="java" contentType="text/html; charset=UTF-8"
		 isELIgnored="false" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<%@ taglib uri="/mytag" prefix="yjd"%>

<div class="nav">
	<ul class="cc">
		<li class="current"><a href="<yjd:url url="/user/list"/>">用户列表</a></li>
		<li><a href="<yjd:url url="/user/fund"/>">用户资金</a></li>
	</ul>
</div>

<body>
	<div class="h_a">搜索</div>
	<form action="${requestScope.FPWEB.rootPath }/user/list${requestScope.FPWEB.urlStuff}" method="get" autocomplete="off">
		<div class="search_type cc">
			<label>会员：</label>
			<input name="mobile_number" type="text" class="input length_3 mr10" value="${param.mobile_number}" placeholder="手机">
			<label>注册日期：</label>
			<input name="regdate1" type="text" class="input length_1 mr10 J_date" value="${param.regdate1}">
			<input name="regdate2" type="text" class="input length_1 mr10 J_date" value="${param.regdate2}">
			<button type="submit" class="btn btn_submit length_1">搜索</button>
		</div>
	</form>
	<div class="table_list">
		<table width="100%">
			<thead>
			<tr>
				<td  width="60">序号</td>
				<td>用户名</td>
				<td>手机号</td>
				<td>真实姓名</td>
				<td>身份证号</td>
				<td>注册时间</td>
				<td>注册IP</td>
				<td>状态</td>
				<td>操作</td>
			</tr>
			</thead>
			<tbody id="J_word_list">
			<c:forEach items="${pager.pagerModel.dataList }" var="item" >
				<tr>
					<td>${item.user_id}</td>
					<td>${item.nickname}</td>
					<td>${item.mobile_number}</td>
					<td>${item.strMap.idName}</td>
					<td>${item.strMap.idCard}</td>
					<td><yjd:jstl_date value="${item.registration_time }" parttern="yyyy-MM-dd HH:mm:ss"/></td>
					<td>${item.registration_ip}</td>
					<td><c:if test="${item.user_status==0}">可用</c:if><c:if test="${item.user_status==1}">冻结</c:if></td>
					<td>
						<a href='<yjd:url url="/user/detail/${item.user_id }"/>' class="btn mr10">查看</a>
						<c:if test="${item.user_status==0}"><a href='<yjd:url url="/user/freeze/${item.user_id}"/>' class="btn btn_orange J_ajax_del" data-msg="确定冻结？" id="J_ajax_del">冻结</a></c:if>
						<c:if test="${item.user_status==1}"><a href='<yjd:url url="/user/unFreeze/${item.user_id}"/>' class="btn btn_green J_ajax_del" data-msg="确定解冻？" id="J_ajax_del">解冻</a></c:if>
					</td>
				</tr>
			</c:forEach>
			</tbody>
		</table>
		<!-- 分页 -->
		<%@ include file="../public/pager/pager.pagination.jsp" %>
	</div>
	<script>
		YJD.use('AppAdminCommon');
	</script>
</body>